#!/bin/sh -e

cd /data

if [ ! -z "${FRPS_LETSENCRYPT_EMAIL}" ]; then

exec /usr/local/bin/acmeproxy --api 9002 --domain ${FRPS_SUBDOMAIN_HOST:-example.com} 2>&1

else

sv stop acmeproxy

fi
